package com.qingfeng.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author  zhangyuefei
 * @date  2020/5/26 2:40 下午
 * @version 1.0
 */
@ApiModel(value="优惠券分发商品")
@Data
@TableName(value = "coupon_distribute_goods")
public class CouponDistributeGoods {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 优惠券模版id
     */
    @TableField(value = "template_id")
    @ApiModelProperty(value="优惠券模版id")
    private Long templateId;

    /**
     * 店铺id
     */
    @TableField(value = "goods_common_id")
    @ApiModelProperty(value="店铺id",required = true)
    private Long goodsCommonId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value="商品id",required = false)
    private Long goodsId;


    @TableField(exist = false)
    private transient String goodsName;

    @TableField(exist = false)
    private transient Integer goodsState;
}
